<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="/WEB-INF/webpage/common/taglibs.jspf"%>
<!DOCTYPE html>
<html>
<head>
  <title>流程类型表列表</title>
  <meta name="decorator" content="list"/>
</head>
<body title="流程类型表">
<grid:grid id="actReTypeGridId" async="true" treeGrid="true"  expandColumn="name" onSelectRow="selectRow" 
	url="${adminPath}/workflow/actretype/ajaxTreeList" dbUrl="${adminPath}/workflow/actretype/{id}">
	<grid:column label="sys.common.key" hidden="true"   name="id" width="100"/>
	<grid:column label="分类名称"   name="name" width="100"/>
	<grid:column label="描述" name="remarks" width="100"/>
	<%-- <grid:column label="创建人" name="createBy.realname" width="100"/> --%>
	<grid:column label="创建时间" name="createDate" dateformat="yyyy-MM-dd" datatype="date" width="100"/>
	
	<grid:toolbar function="create_"  title="新增" icon="fa-plus" 
		btnclass="btn-fa-plus" url="${adminPath}/workflow/actretype/create"/>
	<grid:toolbar function="update"/>
	<grid:toolbar function="delete"/>
	
	<grid:toolbar function="search"/>
	<grid:toolbar function="reset"/>
</grid:grid>
<script type="text/javascript">

//选中的行Id
var selectId = null;

/**
 * @description 选择行.<br>
 * @date 2018/11/8.<br>
 * @author zcg .<br>
 */
function selectRow(id){
	 selectId = id;
}
 
 /**
  * @description 新增流程类型.<br>
  * @date 2018/11/8.<br>
  * @author zcg .<br>
  */
 function create_(title,url,gridId,width,height){
 	url = url + '?pId='+selectId;
 	create(title,url,gridId,width,height);
 } 
</script>
</body>
</html>